package com.example.studymvvmproject01.login

import com.example.studymvvmproject01.base.BaseRepository
import com.example.studymvvmproject01.bean.HomeProadBean
import okhttp3.RequestBody

class LoginRepository:BaseRepository() {

    suspend fun  login()=apiService().getTree()
    suspend fun  token(requestBody: RequestBody? ):LoginBean{
        return  apiService().toke(requestBody)
    }

    suspend fun  workIndex(siteId:Int):HomeProadBean{
        return apiService().workIndex(siteId)
    }
}